FROM golang:alpine AS build
RUN apk add --no-cache git
RUN git clone https://gitee.com/Aceslup/go101.git
RUN cd go101/example && \
    CGO_ENABLED=0 GOOS=linux GOARCH=amd64 && \
    go build -ldflags="-s -w" -o /demo_http demo_http.go
EXPOSE 8080
ENTRYPOINT ["/demo_http"]